package com.bitdf.txing.users.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import com.bitdf.txing.common.entity.BaseEntity;
import com.bitdf.txing.common.valid.SaveGroup;
import com.bitdf.txing.common.valid.UpdateGroup;
import com.lemon.util.anno.MysqlColumn;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;

/**
 * 
 * 
 * @author Lizhiwei
 * @email 123@qq.com
 * @date 2022-09-05 11:22:35
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tx_ums_team_info")
public class TeamInfoEntity extends BaseEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	/**
	 * 团队名
	 */
	@MysqlColumn(comment = "团队名")
	@NotBlank(groups = {SaveGroup.class})
	private String teamName;
	/**
	 * 团队介绍
	 */
	@MysqlColumn(comment = "团队介绍")
	@NotBlank(groups = {SaveGroup.class})
	@Length(min = 20, max = 1000, groups = {SaveGroup.class, UpdateGroup.class})
	private String introduce;
	/**
	 * 团队关注数
	 */
	@MysqlColumn(comment = "团队关注数")
	@Null(groups = {SaveGroup.class, UpdateGroup.class})
	private Integer attendCount;
	/**
	 * 粉丝数
	 */
	@MysqlColumn(comment = "粉丝数")
	@Null(groups = {SaveGroup.class, UpdateGroup.class})
	private Integer fansCount;
	/**
	 * 团队负责人
	 */
	@MysqlColumn(comment = "团队负责人")
	@NotNull(groups = {UpdateGroup.class})
	private Long leaderId;

}
